OpenPlant Modeler Help

How To Configure the Upgrade Variables and Upgrade the DGN

Note: To run this upgrade, you must have the older schemas backed up to a location which will be defined in the procedure below.
  1. Open the *.PCF file for the project to be upgraded (For example, ...\Workspace\Projects\OPModeler_Imperial.pcf)
  2. Define the following variables in the file. By default, these variables are included in the sample projects which are provided with the OPM install.
    • The value defined for the first configuration variable points to older version of the schemas (all schema directories must be specified)
      OPM_UPGRADE_OLD_SCHEMA_PATHS = C:\OldOPMSchemas\OPModeler\schemas\;C:\OldOPMSchemas\Dataset\schemas\;
      
      
    • Old schema version number Major and Minor (OPM_UPGRADE_OLD_SCHEMA_VER_MAJOR cannot be '0')
      OPM_UPGRADE_OLD_SCHEMA_VER_MAJOR = 1
      OPM_UPGRADE_OLD_SCHEMA_VER_MINOR = 4
      
    • A Modification Map is used by the upgrade process. It has the following format:

      <CLASS_NAME_1>:<PROP_1>|<PROP_2>|<PROP_3>;<CLASS_NAME_2>:<PROP_1>|<PROP_2>;<CLASS_NAME_3>:<PROP_1>|<PROP_2>|<PROP_3>; ...

      Upgrade process will look for classes specified by the map, pick those objects in DGN, and update the properties specified in the map for that specific class.

      OPM_UPGRADE_MODIFIED_MAP = MITERED_PIPE_BEND:BEND_POINT_RADIUS|;
  3. Save and close the *.PCF file.
  4. Open the older model and key in MECHADDIN UPGRADEDGN to upgrade.